class ConvertUtil{

  static List<T> listToList<T>(List list,Function func){
    List<T> listRes = [];
    if(list == null)return listRes;
    list.forEach((element) {
      T obj = func(element);
      if(obj != null){
        listRes.add(obj);
      }
    });
    return listRes;
  }

}